﻿using Tww.Wpf.Controls.Controls.Flyouts;
using Tww.Wpf.Controls.Controls.Shared.Enums;

namespace ControlsDemo
{
    /// <summary>
    /// Interaktionslogik für MainWindow.xaml
    /// </summary>
    public partial class MainWindow
    {
        #region  - Konstruktoren -

        public MainWindow()
        {
            InitializeComponent();
        }

        #endregion

        private void Button_Click_1(object sender, System.Windows.RoutedEventArgs e)
        {
            this.ExpandMenu.SwitchElementSize(ElementSize.Minimized);
            //ts.ElementSize = ts.ElementSize == ElementSize.Maximized ? ElementSize.Minimized : ElementSize.Maximized;
            //ts.MinimizeFlyout();
        }

        private void Button_Click_2(object sender, System.Windows.RoutedEventArgs e)
        {
            this.ExpandMenu.SwitchElementSize(ElementSize.Maximized);
            //ts.ElementSize = ElementSize.Collapsed;
            //ts.MaximizeFlyout();
        }
    }
}